package org.ponly.lpf4j.web;

import org.ponly.web.servlet.OncePerRequestFilter;

import javax.servlet.*;
import java.io.IOException;
import java.util.Map;

/**
 */
// extension
class ServletDispatcher extends OncePerRequestFilter {
    // private requestMapping;
    private Map<String, Servlet> servletMap;

    public ServletDispatcher(ServletMapping... mappings) {

    }

    public ServletDispatcher(Map<String, Servlet> servletMap) {
        this.servletMap = servletMap;
    }

    @Override
    public void init() throws ServletException {

    }

    @Override
    public void doFilterInternal(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        if(!servletResponse.isCommitted()) {

        }
        filterChain.doFilter(servletRequest,servletResponse);
    }

    @Override
    public void destroy() {

    }
}
